package com.simtop.service.impl;

import com.simtop.dao.SwrelationMapper;
import com.simtop.service.SwrelationService;
import com.simtop.vo.Devicec;
import com.simtop.vo.Swrelation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SwrelationServiceImpl implements SwrelationService {
    @Autowired
    private SwrelationMapper mapper;
    @Override
    public List<Swrelation> findlaneid(Integer laneid) {
        return mapper.findlaneid(laneid);
    }

    @Override
    public List<Devicec> findall( Integer laneid,Integer deviceid) {
        return mapper.findall(laneid,deviceid);
    }

    @Override
    public Integer addevicec(Integer laneid, Integer deviceid, Float tabledata, Float rangedown, Float rangeup, Float x, Float y, Float k, Float g, Float level, Float vertical, Float core, Integer start, Integer end,Integer startcontroler,Integer endcontroler) {
        return mapper.addevicec(laneid,deviceid,tabledata,rangedown,rangeup,x,y,k,g,level,vertical,core,start,end,startcontroler,endcontroler);
    }

    @Override
    public Integer updatedevicec(Integer laneid, Integer deviceid, Float tabledata, Float rangedown, Float rangeup, Float x, Float y, Float k, Float g, Float level, Float vertical, Float core, Integer start, Integer end,Integer startcontroler,Integer endcontroler) {
        return mapper.updatedevicec(laneid,deviceid,tabledata,rangedown,rangeup,x,y,k,g,level,vertical,core,start,end,startcontroler,endcontroler);
    }
}
